﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FeatureModelCore.FMInterface;
using Collections.TreeCollections;

namespace FeatureModelCore.Optimized
{
    public class OptimizedPropertyForFeature : OptimizedPropertyBase
    {
        #region Properties
        public override TreeNodeIdentify ID { get { return _standardId; } }
        public override IFeatureTreeObject StandardObject { get { return _standardFeature; } }
        public override IFeatureModelObject StandardFeatureObject { get { return _standardFeature; } }
        public override TreeNodeIdentify StandObjectID { get { return _standardId; } }
        #endregion
    
        #region Fields
        /// <summary>
        /// 
        /// </summary>
        private FeatureTreeNode _standardFeature;
        private TreeNodeIdentify _standardId;
        #endregion

        public OptimizedPropertyForFeature(FeatureTreeNode standardFeature)
        {
            _standardFeature = standardFeature;
            _standardId = standardFeature.ID;
        }
    }
}
